package cn.chencq.collection.array;

public class Person {
	private String name;

	private int age;
	private String sex;

	public Person(String name, int age, String sex) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public void display() {
		System.out.print("name:" + this.name);
		System.out.print("age:" + this.age);
		System.out.print("sex:" + this.sex);
		System.out.println();
	}

}
